import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes:Array<RouteRecordRaw> = [
  {
    path:'/login',
    component:() => import('../pages/Login/index.vue')
  },
  {
    path:'/',
    component:() => import('../layout/index.vue'),
    children:[
      {
        path:'home',
        component:() => import('../pages/Home/index.vue')
      },
      {
        path:'customer',
        component:() => import('../pages/Customer/index.vue')
      }
    ]
  }
]

const router = createRouter({
  history:createWebHashHistory(),
  routes
})

export default router